import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from "@/pages/Home/index.vue";
import Login from "@/pages/Login/index.vue";
import Register from "@/pages/Register/index.vue";
import NoFound from "@/pages/NoFound/index.vue";
import Search from "@/pages/Search/index.vue";
Vue.use(VueRouter);
const router = new VueRouter({
    mode: 'history',
    routes: [
        {
            path: '/',
            component:Home,
            meta:{
                isTypeNav: true
            }
        },
        {
            path:'/search',
            component:Search,
            meta:{
                isTypeNav: true
            }
        },
        {
            path: '/login',
            component: Login,
            meta:{
                isHideFooter: true,
            }
        },
        {
            path: '/register',
            component: Register,
            meta:{
                isHideFooter: true
            }
        },
        {
            path: '*',
            component:NoFound
        }
    ]
})
export default router;